const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    component: () => import('@/views/login/login.vue')
  },
  {
    path: '/layout',
    component: () => import('@/views/layout/'),
    children: [
      {
        path: '',
        meta:{
          flag: true
        },
        component: () => import('@/views/home/')
      },
      {
        path: '/article',
        component: () => import('@/views/article')
      },
      {
        path: '/publish',
        component: () => import('@/views/publish')
      },
      {
        path: '/image',
        component: () => import('@/views/image')
      },
      {
        path: '/comment',
        component: () => import('@/views/comment')
      },
      {
        path: '/setting',
        component: () => import('@/views/setting')
      },
      {
        path: '/fans',
        component: () => import('@/views/fans')
      },
    ]
  }
]

export default routes
